# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-python-owasp-zap-v2
pkgver=0.0.9
pkgrel=4
pkgdesc='OWASP ZAP API client.'
url='https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project'
depends=('python2')
makedepends=('python2-setuptools')
license=('ASL2.0')
arch=('any')
source=("https://pypi.python.org/packages/source/p/python-owasp-zap-v2/python-owasp-zap-v2-$pkgver.tar.gz")
sha512sums=('058b36e58d10909c6afe635c7329ec8eb06306018cea3eb94bf2f6a907626dc7cff321b0bc54274e756330c08f0069be3930810469d2b2e1f0903f155faf85a5')

build() {
  cd "python-owasp-zap-v2-$pkgver"

  python2 setup.py build
}

package() {
  cd "python-owasp-zap-v2-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

